<div class="wrapper ramka" style="margin:20px 0 0 10px;">
    <span class="tenantImg"><img src="/public/upload/users/<?php echo $this->item->getAvatar(); ?>" ></span>
    <p class="tenantName"><a href="/tenant_<?php echo $this->item->getId();?>.html" class="color2"><?php echo $this->item->getName()." ".$this->item->getLastName(); ?></a></p>
    <p>Район: <strong><?php echo $this->areas->Make($this->item->getAreas());?></strong></p>
    <br>
    <div>
         <span class="contact_tenant_title">Зв'язок з орендарем</span>
         <?php
                if ($this->phones) {
                       foreach($this->phones as $phone):
                              if($phone->getType()==1){$type='home';}else{$type='mobile';}
                                  echo"<span class=\"phone-".$type."\">&nbsp;&nbsp;&nbsp;&nbsp;(".$this->phonecode->Make($phone->getKod()).") ".$phone->getNumber()."</span>";
                        endforeach;
                }
          ?>
   </div>
</div>